package com.sysef.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class JuegoController {

	@RequestMapping(value = "/juego", method = RequestMethod.GET)
	protected ModelAndView inicio(HttpServletRequest request, HttpServletResponse response) throws Exception {
		return new ModelAndView("ManJuegos");
	}

	@RequestMapping(value = "/juego", method = RequestMethod.POST)
	protected ModelAndView logueo(HttpServletRequest request, HttpServletResponse response) throws Exception {
		String usuario = request.getParameter("idUsuario");
		
		
		
		return new ModelAndView("ManJuegos", "usuario", usuario);
	}
}
